<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body style="height: 100%">
  <button type="button" onClick="pdf()">PDF 预览</button><br><br><br><br>
  <iframe id="iframeContainer" style="width: 100%;height: 500px"></iframe>
</body>
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.3.0-beta.2/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.3.0-beta.2/vfs_fonts.min.js"></script>
<script>
 

  function pdf() {
    
    const pdfDocGenerator = pdfMake.createPdf({
      pageSize: 'A4',
      footer: function(currentPage, pageCount) { return currentPage.toString() + ' of ' + pageCount; },
      header: {
        columns: [
          'Left part',
          { text: 'Right part我', alignment: 'right' }
        ]
      },
      pageBreakBefore: function(currentNode, nodeContainer) {
        console.log(nodeContainer.getFollowingNodesOnPage())
        return currentNode.headlineLevel === 1 && nodeContainer.getFollowingNodesOnPage().length < 7;
      },
      "content": [
          {
              "text": "Tables",
              "style": "header"
          },
          "Official documentation is in progress, this document is just a glimpse of what is possible with pdfmake and its layout engine.",
          {
              "text": "A simple table (no headers, no width specified, no spans, no styling)",
              "style": "subheader"
          },
          "The following table has nothing more than a body array",
          {
              "style": "tableExample",
              "table": {
                  "body": [
                      [
                          "Column 1",
                          "Column 2",
                          "Column 3"
                      ],
                      [
                          "One value goes here",
                          "Another one here",
                          "OK?"
                      ]
                  ]
              }
          },
          {
              "text": "A simple table with nested elements",
              "style": "subheader"
          },
          "It is of course possible to nest any other type of nodes available in pdfmake inside table cells",
          {
              "style": "tableExample",
              layout: 'noBorders',
              "table": {
                  headerRows: 1,
                  "widths": [
                      "*",
                      "auto",
                      100
                  ],
                  "body": [
                      [
                          "Column 1",
                          "Column 2",
                          "Column 3"
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ],
                      [
                          {
                            headlineLevel: 1,
                            "text": [
                              "Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be  Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be Inlines can be",
                            ]
                          },
                          {
                            headlineLevel: 1,
                              "text": [
                                  "Inlines can be "
                              ]
                          },
                          {
                            headlineLevel: 1,
                            "text": [
                                  "Inlines can be "
                              ]
                          }
                      ]
                  ]
              }
          },
          "This is a standard paragraph, using default style",
          {
              "text": "This paragraph will have a bigger font",
              "fontSize": 15
          },
          {
              "text": [
                  "This paragraph is defined as an array of elements to make it possible to ",
                  {
                      "text": "restyle part of it and make it bigger ",
                      "fontSize": 15
                  },
                  "than the rest."
              ]
          }
      ]
  })
    pdfDocGenerator.getDataUrl().then((dataUrl) => {
      document.getElementById("iframeContainer").src = dataUrl;
    }, err => {
      console.error(err);
    });
  }
</script>